<!DOCTYPE html>
<html lang="en" class="no-js" xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
	layout:decorator="layout">
<head>
<title>生成充值卡</title>
<script th:inline="javascript">
	/*<![CDATA[*/
	
			/*]]>*/
</script>
</head>
<body>
	<div layout:fragment="content">
		<div class="row">
			<div class="col-md-12">
				<div class="btn-group pull-right">
					<a href="index.html" th:href="@{/admin/money/createCard/index/}"
						id="sample_editable_1_new" class="btn green">返回<i
						class="fa fa-arrow-circle-o-left"></i></a>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-md-12">
				<div class="form">
					<form role="form" th:action="@{/admin/money/createCard/save}" th:object="${addcard}" id="addCardForm" method="post" class="form-horizontal">
						<h4 class="form-section">分类信息</h4>
					
						<div class="form-body">
							<div class="form-group" th:class="${#fields.hasErrors('cardId')}? 'form-group has-error' : 'form-group'">
								<label class="control-label col-md-3">充值卡类型<span class="required" aria-required="true">* </span></label>
								<div class="col-md-4">
								
									<select id="selt_brandType"  th:remove="none" class="form-control" th:field="*{cardId}" >
										<option th:each="eachValue : ${cards}"   th:value="${eachValue.id}" th:text="${eachValue.name}"></option>
									</select>
								</div>
							</div>
							<div class="form-group" th:class="${#fields.hasErrors('nums')}? 'form-group has-error' : 'form-group'">
							<label class="control-label col-md-3">数量:<span class="required" aria-required="true">* </span></label>							
							<div class="col-md-4">
								<input type="text" class="form-control" placeholder="数量" th:field="*{nums}"/>
							</div>
							</div>
							<div class="form-group" th:class="${#fields.hasErrors('businessManId')}? 'form-group has-error' : 'form-group'">
								<label class="control-label col-md-3">商户<span class="required" aria-required="true">* </span></label>
								<div class="col-md-4">
								
									<select id="selt_brandType"  th:remove="none" class="form-control" th:field="*{businessManId}" >
										<option th:each="eachValue : ${businessMan}"   th:value="${eachValue.id}" th:text="${eachValue.name}"></option>
									</select>
								</div>
							</div>
							
							

						</div>
						<div class="form-actions fluid">
							<div class="col-md-offset-3 col-md-9">
								<button type="submit" class="btn blue" name="sub">提交</button>
							</div>
						</div>
					</form>
				</div>
			</div>		
		</div>
	</div>
</body>
</html>